import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const readSystemTaskByPage = (param) => request({
    url: baseUrl + '/task/read/page',
    method: 'get',
    data:param
});

export const addSystemTask = (data) => request({
    url: baseUrl + '/task/save',
    method: 'post',
    data:data
})
export const runSystemTask = (data) => request({
    url: baseUrl + '/task/run',
    method: 'post',
    data:data
})
export const startSystemTask = (data) => request({
    url: baseUrl + '/task/start',
    method: 'post',
    data:data
})
export const paulseSystemTask = (data) => request({
    url: baseUrl + '/task/paulse',
    method: 'post',
    data:data
})
export const delSystemTask = (data) => request({
    url: baseUrl + '/task/delete',
    method: 'post',
    data:data
})
